package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="PipeLengthTjDTO")
public class PipeLengthTjDTO {

    @NotNull(message = "管道总长度不能为空")
    @Min(value = 0, message = "管道总长度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "管道总长度必须是整数")
    @ApiModelProperty(value = "管道总长度", example="10")
    private String pipeLengh;

    @NotNull(message = "主干管总长度不能为空")
    @Min(value = 0, message = "主干管总长度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "主干管总长度必须是整数")
    @ApiModelProperty(value = "主干管总长度", example="10")
    private String mainLengh;

    @NotNull(message = "支干网总长度不能为空")
    @Min(value = 0, message = "支干网总长度必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "支干网总长度必须是整数")
    @ApiModelProperty(value = "支干网总长度", example="10")
    private String subLengh;
}